/**
 * Created by Administrator on 2017/3/17.
 */



 function * func1() {
 console.log("aaaaaaaaa");
 yield "yeild1";
 console.log("bbbbb");
 yield  "yeild2";
 console.log("ccccc")
   let cc =  yield "";
  console.log(cc );
 }
 let state= func1();
 state.next();
 state.next();
 state.next(333);
state.next();